<div class="tableToolbar">
    <div class="coll-md-8" id="addInput">
        <div class="coll-md-2">
            <input type="text" class='search' placeholder="姓名" ng-model="ctrlScope.itemsearch.realname">
        </div>
        <!--<div class="coll-md-1 triangle">-->
            <!--<select class="form-control" ng-model="ctrlScope.itemsearch.sex">-->
                <!--<option value="" disabled selected hidden>性别</option>-->
                <!--<option value="0">不限</option>-->
                <!--<option value="1">男</option>-->
                <!--<option value="2">女</option>-->
            <!--</select>-->
        <!--</div>-->
        <div class="coll-md-2 scalenone"  id="searchdate" datahide>
            <div class="coll-md-10 triangle">
                <input type="text" class='search' placeholder="身份证号" ng-model="ctrlScope.itemsearch.identifyCard">
            </div>
        </div>
        <div class="coll-md-4 scalenone"  id="search2">
            <div class="coll-md-5">
                <input type="text" class='search' placeholder="电话" ng-model="ctrlScope.itemsearch.mobile">
            </div>
            <div class="coll-md-5" >
                <input type="text" class='search' placeholder="用户来源" ng-model="ctrlScope.itemsearch.referer">
            </div>

        </div>
        <div class="coll-md-2">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">

            <div class="dropdown-menu-right">
                <input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false">
                <input type="button" class="small-icon more" value="更多">
                <ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
                    <li><a href="javascript:;">身份证号搜索</a></li>
                    <li><a href="javascript:;">其他条件搜索</a></li>
                </ul>
            </div>
        </div>
    </div>

</div>

<table ui-table="orderParams">
    <thead>
    <tr>
        <th>用户来源</th>
        <th>姓名</th>
        <!--<th>性别</th>-->
        <th>身份证号</th>
        <th>电话</th>
        <th style="cursor: pointer" ng-click="order('total')" ng-class="{true: 'triangle', false: 'orderup'}[onOff]">账户总额</th>
        <th style="cursor: pointer" ng-click="order('usable')" ng-class="{true: 'triangle', false: 'orderup'}[onOff]">账户余额</th>
        <th style="cursor: pointer" ng-click="order('wait')" ng-class="{true: 'triangle', false: 'orderup'}[onOff]">代收金额</th>
        <th style="cursor: pointer" ng-click="order('frozen')" ng-class="{true: 'triangle', false: 'orderup'}[onOff]">冻结金额</th>

    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">
        <td>{{item.referer}}  <a href="" ng-click="check(item.refUserId)">查看</a></td>
        <td>{{item.realname}}</td>
        <!--<td>{{item.sex}}</td>-->
        <td>{{item.identifyCard}}</td>
        <td>{{item.mobile}}</td>
        <td>{{item.total | currency:'￥'}}</td>
        <td>{{item.usable | currency:'￥'}}</td>
        <td>{{item.wait | currency:'￥'}}</td>
        <td>{{item.frozen | currency:'￥'}}</td>
    </tr>
    </tbody>
</table>

<modal title="查看客户" visible="viewItemModal" style="margin:250px auto;">
    <form class="form-horizontal" role="form" id="form">
        <div class="form-body">
            <div class="row">
                <div class="col-md-12">
                    <table>
                        <tr>
                            <th>第一邀请人</th>
                            <th>第二邀请人</th>
                            <th>第三邀请人</th>
                            <th>第四邀请人</th>
                        </tr>
                        <tr>
                            <td>{{user.firstUsername}}</td>
                            <td>{{user.secondUsername}}</td>
                            <td>{{user.thirdUsername}}</td>
                            <td>{{user.fourthUsername}}</td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="col-md-12 buttonArea">
                <button type="button"  class="btn blue" ng-click="close()">关闭</button>
            </div>
        </div>
    </form>
</modal>